From: victoryang Date: Thu, 13 Oct 2016 04:29:21 +0000 (+0800) Subject: authPrompt.js: turn off the ellipsization of pam messages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~684 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b339c83714fd173298a83227be7c83f7975fc6d;p=gnome-shell.git authPrompt.js: turn off the ellipsization of pam messages When the user gets long failure messages from pam, the authPrompt message label will clip the message and ellipsize with '…'. This commit turns off ellipsization from the label, so it will properly wrap. https://bugzilla.gnome.org/show_bug.cgi?id=764445 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 50c66fd13..994c0807c 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -13,6 +13,7 @@ const Params = imports.misc.params; const ShellEntry = imports.ui.shellEntry; const Tweener = imports.ui.tweener; const UserWidget = imports.ui.userWidget; +const Pango = imports.gi.Pango; const DEFAULT_BUTTON_WELL_ICON_SIZE = 16; const DEFAULT_BUTTON_WELL_ANIMATION_DELAY = 1.0; @@ -113,6 +114,7 @@ const AuthPrompt = new Lang.Class({ this._message = new St.Label({ opacity: 0, styleClass: 'login-dialog-message' }); this._message.clutter_text.line_wrap = true; + this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; this.actor.add(this._message, { x_fill: false, x_align: St.Align.START, y_align: St.Align.START }); this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box',